Skip to main content

Token Denoms

Queries the token pair for the specified VLP address.

query Token_denoms($token: String!) {
router {
token_denoms(token: $token) {
denoms {
chain_uid
token_type {
... on NativeTokenType {
native {
denom
}
}
... on SmartTokenType {
smart {
contract_address
}
}
... on VoucherTokenType {
voucher
}
}
}
}
}
}

Example

curl --request POST \
    --header 'content-type: application/json' \
    --url 'https://api.euclidprotocol.com/graphql' \
    --data '{"query":"query Router($token: String!) {\n  router {\n    token_denoms(token: $token) {\n      denoms {\n        chain_uid\n        token_type {\n          ... on NativeTokenType {\n            native {\n              denom\n            }\n          }\n          ... on SmartTokenType {\n            smart {\n              contract_address\n            }\n          }\n          ... on VoucherTokenType {\n            voucher\n          }\n        }\n      }\n    }\n  }\n}","variables":{"token":"usdt"}}'

Open in Playground

Arguments

NameTypeDescription
tokenString!The token to fetch denoms for.

Return Fields

FieldTypeDescription
denoms[Denom]The list of token representations across different chains.

Denom

FieldTypeDescription
chain_uidStringThe UID of the chain.
token_typeTokenType (union)The type of token (Native, Smart, or Voucher).

NativeTokenType

FieldTypeDescription
denomStringThe native token's denom.

SmartTokenType

FieldTypeDescription
contract_addressStringThe smart contract address of token.

VoucherTokenType

FieldTypeDescription
voucherStringThe voucher denomination string.